<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
 <jsp:include page="../restab.jsp" flush="true" />
</head>
<body>
     <jsp:include page="../header.jsp" flush="true" />
     <div id= "body"> 
       <ul class="p">
        <c:forEach items="${listProducts}" var="product"> 
			<li class="pItem">
			<img src="${pageContext.request.contextPath}/resources/images/apple.jpg" alt="product image"/>
			<div>
			<div><a href="${pageContext.request.contextPath}/product/show?productId=${product.productId}"><small>${product.productName}</small></a></div>
			<div><span>${product.salesPrice}元</span></div>
			</div>
			</li>
		</c:forEach>
		<div class="clear"></div>
	    </ul>
    </div>
    	
</body>
</html>